package com.unnamed.collisions.geometry;

public class Point {
	float x,y;
	public Point(){
		
	}
	public Point(float x, float y){
		this.x=x;this.y=y;
	}
	public String toString(){
		return "("+x+","+y+")";
	}
	
	public float getX(){
		return x;
	}
	
	public float getY(){
		return y;
	}
	
	public float distance(Point other){
		double _x = other.x-x;
		double _y = other.y-y;
		return (float) Math.sqrt(Math.pow(_x, 2)+Math.pow(_y, 2));
	}
}
